#ifndef KQUEUE_EVENT_H
#define KQUEUE_EVENT_H

#include "event.h"

int kqueue_create_event_manager (int size);

int kqueue_add_fd (int fd, int events);
int kqueue_del_fd (http_connection_t *http_connection);

int kqueue_del_listener (int fd);

int kqueue_event_wait (int timeout);

int kqueue_prepare_for_reading (http_connection_t *http_connection);
int kqueue_prepare_for_writing (http_connection_t *http_connection);
int kqueue_remove_notifications (http_connection_t *http_connection);

#endif /* KQUEUE_EVENT_H */
